﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KCLIMTrading.Mgmt
{
	public class Product
	{
		#region Variable
		private String code;
		private String name;
		private decimal price;
		#endregion

		#region Properties
		/// <summary>
		/// Set or get product code
		/// </summary>
		public String Code { get{return this.code;} set {this.code = value;}}
		/// <summary>
		/// Set or get product name
		/// </summary>
		public String Name { get {return this.name;} set {this.name = value;}}
		/// <summary>
		/// Set or get product per unit price
		/// </summary>
		public decimal Price { get {return this.price;} set {this.price = value;} }
		#endregion

		/// <summary>
		/// Default contructor.
		/// </summary>
		public Product()
		{
			//TODO: default value when create a new object
		}
		public override string ToString()
		{
			return this.code+ ": "+this.name;
		}
		/// <summary>
		/// Write XML to store.
		/// </summary>
		public bool Save()
		{
			throw new NotImplementedException();
		}
	}
}
